const path = require('path');
const resolve = function (dir) {
  return path.join(__dirname, dir);
};

module.exports = {
  chainWebpack: config => {
    config.resolve.alias.set('@', resolve('src'))
  },
  configureWebpack: {
    devServer: {
      proxy: {
        '/v1/api': {
          target: 'http://wingsico.org:8080',
          changeOrigin: true
        }
      }
    }
  }
}